#ifndef SESSION
#define SESSION

#include <stdlib.h>
#include <iostream>
#include <string>

#include <network\protocol.h>

#include <Poco/Path.h>

#include <vector>

using namespace std;

class sessionState;

class session {

  bool finish;

  vector<sessionState *> states;

public:

  bool addState(sessionState *_state);
  sessionState *getState(int type_id);

  void requestFinish();
  bool isFinishRequested();

  session();
  ~session();
};

#endif